﻿namespace Stopwatch
{
    using System;
    using System.Runtime.Serialization;

    [DataContract]
    public class TimerState : JsonSerializable
    {
        [DataMember]
        public DateTime StartTime { get; set; }

        [DataMember]
        public DateTime PauseTime { get; set; }

        [DataMember]
        public Status Status { get; set; }

        public override string ToString()
        {
            return ToJson();
        }
    }
}
